package com.granada.behaviour.base;


import com.granada.vo.resp.UserOwnRoleRespVO;

import java.util.List;
import java.util.Set;

public abstract class UserBehavior implements com.granada.behaviour.interfaces.UserBehavior {

    public abstract List<Long> getRolesByUserId(Long userId) throws Exception;

    public abstract Set<Long> getPermissionsByUserId(Long userId) throws Exception;


    public abstract UserOwnRoleRespVO getUserOwnRole(Long userId) throws Exception;

    public abstract void setUserOwnRole(Long userId,List<Long> roleIds) throws Exception;

}
